package com.havey.ye;

/**
 * @author huaiwei.com.havey.ye
 * @description: TODO
 * @date 2021/2/9 17:14
 */
public class CashRebate extends CashSuper{
    private double rebate=1d;

    public CashRebate(double rebate) {
        this.rebate = rebate;
    }

    @Override
    public double acceptCash(double money) {
        return money*rebate;
    }
}
